//
//  AGLRecordValueView.m
//  滴滴快拍
//
//  Created by dllo on 16/6/1.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "AGLRecordValueView.h"
#define WIDTH self.frame.size.width
#define HEIGHT self.frame.size.height

@implementation AGLRecordValueView

- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}


- (void)createView {
    self.backgroundColor = [UIColor whiteColor];
    self.alpha = 0.8;

    
    self.myLabel = [[BaseLabel alloc]initWithFrame:CGRectMake(0, 0, 60, 40)];
    self.myLabel.layer.cornerRadius = 10;
    self.myLabel.layer.masksToBounds = YES;
    self.myLabel.textAlignment = NSTextAlignmentCenter;
    self.myLabel.font = [UIFont systemFontOfSize:15];
    [self addSubview:self.myLabel];
    
    
    self.myTextField = [[BaseTextField alloc]initWithFrame:CGRectMake(70, 0, WIDTH- 70, 40)];
    [self addSubview:self.myTextField];
    self.myTextField.layer.cornerRadius = 10;
    self.myTextField.clearButtonMode = UITextFieldViewModeAlways;
    self.myTextField.keyboardType = UIKeyboardTypeNumberPad;

    
    
    //    self.myTextField.delegate = self;
    
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
